package com.hsgene.consumables.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 耗材入库表
 *
 * @author wxf
 * @date 2018/8/14 17:06
 **/
@Table(name = "genetic_goods_receipt")
public class ConsumablesReceiptInfo implements Serializable {

    private Integer number;
    /**
     * id
     */
    @Id
    private String id;
    /**
     * 进货编号
     */
    private String purchaseNo;

    /**
     * 商品ID
     */
    private String goodsId;

    /**
     * 转化后数量
     */
    private Integer convertAmount;

    /**
     * 进货数量
     */
    private Integer purchaseNumber;

    /**
     * 进货日期
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date purchaseDateTime;

    /**
     * 删除标记(0正常1删除)
     */
    private String deleteFlag;

    /**
     * 备注
     */
    private String remarks;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }


    public String getPurchaseNo() {
        return purchaseNo;
    }

    public void setPurchaseNo(String purchaseNo) {
        this.purchaseNo = purchaseNo;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getConvertAmount() {
        return convertAmount;
    }

    public void setConvertAmount(Integer convertAmount) {
        this.convertAmount = convertAmount;
    }

    public Date getPurchaseDateTime() {
        return purchaseDateTime;
    }

    public void setPurchaseDateTime(Date purchaseDateTime) {
        this.purchaseDateTime = purchaseDateTime;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    /**
     * 进货数量
     *
     * @return purchase_number 进货数量
     */
    public Integer getPurchaseNumber() {
        return purchaseNumber;
    }

    /**
     * 进货数量
     *
     * @param purchaseNumber 进货数量
     */
    public void setPurchaseNumber(Integer purchaseNumber) {
        this.purchaseNumber = purchaseNumber;
    }


    /**
     * 备注
     *
     * @return remarks 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * 备注
     *
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }
}